﻿<?xml version="1.0" encoding="utf-8" ?>
<DbDataRequest connection="$ForumDBConnection$" type="$ForumDBType$">
  <SqlStatement hasResults="false">
    UPDATE Forum SET
      numThread=@numThreads,
      numPost=@numPosts,
      lastPostTitle=@lastPostTitle,
      lastPostById=@lastPostById,
      lastPostByName=@lastPostByName,
      lastPostDate=@lastPostByDate
    WHERE id=@id;
  </SqlStatement>
  <Param name="id" type="UniqueIdentifier"/>
  <Param name="numThreads" type="Int"/>
  <Param name="numPosts" type="Int" />
  <Param name="lastPost.shortTitle" dbName="lastPostTitle" type="VarChar" />
  <Param name="lastPost.dateCreated" dbName="lastPostByDate" type="DateTime" />
  <Param name="lastPost.createdBy.id" dbName="lastPostById" type="UniqueIdentifier" />
  <Param name="lastPost.createdBy.userName" dbName="lastPostByName" type="VarChar" />

</DbDataRequest>